/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package quanlisinhvien.dto;

import java.sql.Date;

/**
 *
 * @author Marshmallow
 */
public class SinhVienDTO {
    
    private String maSinhVien;
    private String hoTen;
    private String gioiTinh;
    private Date ngaySinh;
    private String diaChi;
    private float diemMon1;
    private float diemMon2;
    private float diemMon3;
    private LopDTO lop;

    public String getMaSinhVien() {
        return maSinhVien;
    }

    public void setMaSinhVien(String maSinhVien) {
        this.maSinhVien = maSinhVien;
    }

    public String getHoTen() {
        return hoTen;
    }

    public void setHoTen(String hoTen) {
        this.hoTen = hoTen;
    }

    public String getGioiTinh() {
        return gioiTinh;
    }

    public void setGioiTinh(String gioiTinh) {
        this.gioiTinh = gioiTinh;
    }

    public Date getNgaySinh() {
        return ngaySinh;
    }

    public void setNgaySinh(Date ngaySinh) {
        this.ngaySinh = ngaySinh;
    }

    public String getDiaChi() {
        return diaChi;
    }

    public void setDiaChi(String diaChi) {
        this.diaChi = diaChi;
    }

    public float getDiemMon1() {
        return diemMon1;
    }

    public void setDiemMon1(float diemMon1) {
        this.diemMon1 = diemMon1;
    }

    public float getDiemMon2() {
        return diemMon2;
    }

    public void setDiemMon2(float diemMon2) {
        this.diemMon2 = diemMon2;
    }

    public float getDiemMon3() {
        return diemMon3;
    }

    public void setDiemMon3(float diemMon3) {
        this.diemMon3 = diemMon3;
    }

    public LopDTO getLop() {
        return lop;
    }

    public void setLop(LopDTO lop) {
        this.lop = lop;
    }

    public SinhVienDTO() {
        this.maSinhVien = "";
        this.hoTen = "";
        this.gioiTinh = "Nam";
        this.ngaySinh = new Date(1991-1900, 1, 1); //giới hạn năm nhỏ nhất là 1900 
        this.diaChi = "";
        this.diemMon1 = 0.0f;
        this.diemMon2 = 0.0f;
        this.diemMon3 = 0.0f;
        this.lop = new LopDTO();
    }

    public SinhVienDTO(String maSinhVien, String hoTen, String gioiTinh, Date ngaySinh, String diaChi, float diemMon1, float diemMon2, float diemMon3, LopDTO lop) {
        this.maSinhVien = maSinhVien;
        this.hoTen = hoTen;
        this.gioiTinh = gioiTinh;
        this.ngaySinh = ngaySinh;
        this.diaChi = diaChi;
        this.diemMon1 = diemMon1;
        this.diemMon2 = diemMon2;
        this.diemMon3 = diemMon3;
        this.lop = lop;
    }
    
    public SinhVienDTO(SinhVienDTO _sinhVien){
        this.maSinhVien = _sinhVien.getMaSinhVien();
        this.hoTen = _sinhVien.getHoTen();
        this.gioiTinh = _sinhVien.getGioiTinh();
        this.ngaySinh = _sinhVien.getNgaySinh();
        this.diaChi = _sinhVien.getDiaChi();
        this.diemMon1 = _sinhVien.getDiemMon1();
        this.diemMon2 = _sinhVien.getDiemMon2();
        this.diemMon3 = _sinhVien.getDiemMon3();
        this.lop = _sinhVien.getLop();
    }
      
}
